class Test {

	public static void main(String[] args) {
//calculate sum of array Elements		
		int[] a = {1,1,1,1,1,1,1,1,1,1};
		System.out.println("Sum of Array elements is: " + Calculator.Sum_of_Array(a));
	
//Random integer Array	
		System.out.println("\n\n Integer Array of 20 nos. ");
		Calculator.print_int(Calculator.rand_int(20));
		System.out.println("\n\nSum of Array elements is: " + Calculator.Sum_of_Array(Calculator.rand_int(10)));
		
//Random integer double		
		System.out.println("\n\n Double Array of 20 nos. ");
		Calculator.print_double(Calculator.rand_double(20));
		
//Random integer Char
		System.out.println("\n\n Char Array of 20 nos. ");
		Calculator.print_char(Calculator.rand_char(20));
		
	
	
	
//max in an array
			int[] arr=Calculator.rand_int(10);
			int max = Calculator.max_arr(arr);
			
			System.out.println("\n\nMax in Array"); 
			Calculator.print_int(arr);
			System.out.println("is : " + max);
// reverse an integer array
			System.out.println("\n\n INT Array");
			Calculator.print_int(arr);
			int[] rev = Calculator.rev_int(arr);
			
			System.out.println("\n\n Reversed  INT array is:"); 
			Calculator.print_int(rev);
			
// reverse an Char array			
			
			char[] arr1 =  Calculator.rand_char(10);
			System.out.println("\n\n Char Array");
			Calculator.print_char(arr1);
			char[] rev1 = Calculator.rev_char(arr1);
			
			System.out.println("\n\n Reversed CHAR array is:"); 
			Calculator.print_char(rev1);
//Count no. of vowels

			char[] arr2 =  Calculator.rand_char(10);
			System.out.println("\n\n Char Array");
			Calculator.print_char(arr2);
			int count = Calculator.count_vowel(arr2);
			System.out.println("\nNo. of Vowels is :" + count);
			
//Generate even nos between num1 & num2
		System.out.println("\n\nGenerate even nos between num1 & num2");
		int[] even = Calculator.gen_even(10,100);
		Calculator.print_int(even);
//Generate Odd nos between num1 & num2
		System.out.println("\n\nGenerate Odd nos between num1 & num2");
		int[] odd = Calculator.gen_odd(10,100);
		Calculator.print_int(odd);
//Generate Prime nos between num1 & num2
		System.out.println("\n\nGenerate Prime nos between num1 & num2");
		int[] prime = Calculator.gen_prime(0,100);
		Calculator.print_int(prime);
//Linear Search
		int[] linear = Calculator.rand_int(20);
		int key = 50;
		System.out.println("\n\nLinear search\n array is : ");
		Calculator.print_int(linear);
		System.out.println("\nKey is :"+key +"  Res is :"+ Calculator.linear_search(linear,key)+"Pos");
//Binary search
		int[] binary = {10,50,60,70,90};
		int bkey = 50;
		System.out.println("\n\nBinary search\n array is : ");
		Calculator.print_int(binary);
		System.out.println("\nKey is :"+bkey +"  Res is :"+ Calculator.binary_search(binary,bkey)+"Pos");

//Fibonacci using array

		int[] fibbo = Calculator.gen_fibbo(10);
		System.out.println("\n\nFibbonacci ");
		Calculator.print_int(fibbo);
		
		
	}
}